package wwiii;

import java.util.Collection;

public class GameGenerator {
	private final MapGenerator mapGen;
	private final Collection<Player> players;

	public GameGenerator(MapGenerator mapGen, Collection<Player> players) {
		this.mapGen = mapGen;
		this.players = players;
	}

	public Game generate() {
		final AreaMap map = mapGen.generate();
		final Game game = new Game("id", "name", map);

		for (Player player : players) {
			game.addPlayer(player);
		}

		return game;
	}
}
